package com.zhentao.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.pojo.HospitalNavigation;
import com.zhentao.service.HospitalNavigationService;
import com.zhentao.vo.Query;
import com.zhentao.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/navigation")
public class HospitalNavigationController {
    @Autowired
    private HospitalNavigationService hospitalNavigationService;
    @RequestMapping("/findPage")
    public Result findPage(@RequestBody Query query){
        Page<HospitalNavigation> page = hospitalNavigationService.findPage(query);
        return Result.OK(page);
    }


}
